package com.ang.structural.adapter;

import org.junit.Test;

public class User {
    @Test
    public void chargeForPhone() {
        int supply = new HomeBattery().supply();
        System.out.println("家庭电源提供的电压是 " + supply + "V");

        new USBLine().charge(new Adapter().convert(supply));
    }
}